package edu.jd.movieplatform.search.profit.impl;

import edu.jd.movieplatform.search.profit.Profit;
import edu.jd.movieplatform.search.profit.ProfitDto;
import edu.jd.movieplatform.search.profit.ProfitService;
import edu.jd.movieplatform.search.profit.dao.ProfitDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class ProfitServiceImpl implements ProfitService {
    @Resource
    private ProfitDao profitDao;

    @Override
    public List<Profit> getAllProfit(ProfitDto dto) {
        return profitDao.getProfitList(dto);
    }

    @Override
    public Integer getcinemaid(String m_id) {
        return profitDao.getcinemaid(m_id);
    }
}
